@import '@/app/styles/variables';

.block {
  padding: 22px 16px 16px;
  border-radius: 25px;
  border: 8px solid #f3f3f3;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.blockTitle {
  padding: 0 6px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.learningList {
  padding: 0 6px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-self: center;
}

.learningItem {
  width: 100%;
}

.button {
  display: flex;
  align-self: center;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  margin-top: auto;
  margin-bottom: 6px;
  padding: 23.5px 0;
  width: 100%;
  max-width: 320px;
  height: fit-content;

  color: #000;
  background-color: #ffd662;
  border-radius: 94px;
  gap: 8px;

  font-size: 20px;
  font-weight: 500;
  line-height: 34px;

  &:hover {
    background-color: #e9b82f;
  }
}

@include media-min(sm) {
  .block {
    padding: 32px;
    border-radius: 40px;
  }

  .learningItem {
    width: 165px;
  }

  .button {
    padding: 23px 60px;
    max-width: initial;
    width: initial;
  }
}

@include media-min(md) {
  .block {
    padding: 52px;
    gap: 40px;
  }

  .learningItem {
    width: 211px;
  }

  .button {
    font-size: 24px;
    font-weight: 500;
    line-height: 34px;
    margin-bottom: 36px;
  }
}

@include media-min(lg) {
  .learningItem {
    width: 220px;
  }
}

@include media-min(xl) {
  .learningItem {
    width: 265px;
  }
}
